#!/bin/bash
version=1.0.4
if [ -n "$1" ]; then
    version=$1
fi

mvn -X clean package -Dmaven.test.skip=true

cd blog-admin/
sh docker_update.sh ${version}

cd ..
cd blog-web/
sh docker_update.sh ${version}